-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect current user index when adding or removing a user account. Also fix incorrect user avatar lookup by id. #5092
Conversation
179bdcf
to
319c760
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5092 +/- ##
==========================================
- Coverage 57.38% 57.22% -0.17%
==========================================
Files 138 138
Lines 17444 17441 -3
==========================================
- Hits 10011 9981 -30
- Misses 7433 7460 +27
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, just some small changes I would make to make things tidier
59d02ff
to
1eed3ba
Compare
@claucambra fixed your comments and also had to add more conditions after I discovered an issue with the current account being switched when it shouldn't when removing another account, this all happens because of using ids as indices in the list, while the same id is set in the Account instance as a member. I guess best would be to refactor the setCurrentUser such that it would not assume the index in the list to correspond to the Account's id, but, that of course would require much more time and re-testing of everything |
c7e3518
to
91652a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nitpicks
5d99726
to
c4d9c2d
Compare
Signed-off-by: alex-z <blackslayer4@gmail.com>
…-changing account id member with changing account index in the list. Signed-off-by: allexzander <blackslayer4@gmail.com>
c4d9c2d
to
6cb988b
Compare
AppImage file: nextcloud-PR-5092-6cb988b66788e11cef439269959a06bf1c1278f0-x86_64.AppImage |
SonarCloud Quality Gate failed. |
/backport to stable-3.6 |
No description provided.